package com.sms.client;

import com.google.gwt.core.client.GWT;


public class ServiceUtil {

	private static _HibernateServiceAsync hibernateServiceAsync;
	private static UserLoginServiceAsync userLoginServiceAsync;
	private static MeterServiceAsync meterServiceAsync;
	//private static EmailServiceAsync emailServiceAsync;
	
		public static _HibernateServiceAsync getHibernateServiceAsync() {
		if (hibernateServiceAsync == null) 
			hibernateServiceAsync = (_HibernateServiceAsync) GWT.create(_HibernateService.class);
		
		return hibernateServiceAsync;
	}
		public static UserLoginServiceAsync getUserLoginServiceAsync() {
			if (userLoginServiceAsync == null) 
				userLoginServiceAsync = (UserLoginServiceAsync) GWT.create(UserLoginService.class);
			
			return userLoginServiceAsync;
		}
		
		public static MeterServiceAsync getMeterServiceAsync() {
			if (meterServiceAsync == null) 
				meterServiceAsync = (MeterServiceAsync) GWT.create(MeterService.class);
			
			return meterServiceAsync;
		}
		
//		public static EmailServiceAsync getEmailServiceAsync() {
//			if (emailServiceAsync == null) 
//				emailServiceAsync = (EmailServiceAsync) GWT.create(EmailService.class);
//			
//			return emailServiceAsync;
//		}
		
}